package com.example.general;


import com.example.general.mapper.UserMapper;
import com.wy.com.example.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 山石
 * @since 2020-04-03
 */
@RestController
public class UserController {


    @Autowired
    private UserMapper userMapper;
            @RequestMapping("1")
    public void h(){
                System.out.println(userMapper);
                User user = new User().setCellphone("19974810792").setIdentifier("fahdf");

                userMapper.insert(user);
    }
}
